package util

import (
	"fmt"
	"hash/crc32"
	"os"
)

func FileCRC(file *os.File){
	crc32q := crc32.MakeTable(crc32.Koopman)
	crc32q2 := crc32.MakeTable(crc32.IEEE)
	crc32q3 := crc32.MakeTable(crc32.Castagnoli)
	fmt.Printf("%08x\n", crc32.Checksum([]byte("Hello world"), crc32q))
	fmt.Printf("%08x\n", crc32.Checksum([]byte("Hello world"), crc32q2))
	fmt.Printf("%08x\n", crc32.Checksum([]byte("Hello world"), crc32q3))
}

//